package priv.hibernate.entry;

import java.util.Date;

public class News {

	private Integer id;
	private String title;
	private String auther;
	private Date date;

	private String desc;
	private String content;
	private byte[] image;
	
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public byte[] getImage() {
		return image;
	}

	public void setImage(byte[] image) {
		this.image = image;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public News(String title, String auther, Date date, Integer id) {
		this.id=id;
		this.title=title;
		this.auther=auther;
		this.date=date;
	}

	

	@Override
	public String toString() {
		return "News [id=" + id + ", title=" + title + ", auther=" + auther + ", date=" + date + ", desc=" + desc + "]";
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAuther() {
		return auther;
	}

	public void setAuther(String auther) {
		this.auther = auther;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public News() {
	}
	

}
